import request from '@/utils/request'

// 查询
export function list(query) {
  return request({
    url: '/shop/buffetDetail/list',
    method: 'get',
    params: query
  })
}

export function listAll(query) {
    return request({
      url: '/shop/buffetDetail/listAll',
      method: 'get',
      params: query
    })
  }

// 查询
export function get(id) {
  return request({
    url: '/shop/buffetDetail/' + id,
    method: 'get'
  })
}

// 新增
export function add(data) {
  return request({
    url: '/shop/buffetDetail/add',
    method: 'post',
    data: data
  })
}

// 修改
export function update(data) {
  return request({
    url: '/shop/buffetDetail',
    method: 'put',
    data: data
  })
}

// 删除
export function del(id) {
  return request({
    url: '/shop/buffetDetail/' + id,
    method: 'delete'
  })
}
